package com.winner.es.controller.base;


import com.winner.es.exception.EsResultEnum;
import com.winner.es.exception.Result;

public class BaseController {

    public Result success(Object obj) {
        return Result.success(obj);
    }

    public Result success() {
        return Result.success();
    }

    public Result error(EsResultEnum exceptionEnum) {
        return Result.error(exceptionEnum);
    }

}
